package hd.cls4;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArrTest {
    public static void main(String[] args) {
        int a1[]={1,2,3,4,5};
        int[] a2=new int[20];
        //a1复制到a2
        System.arraycopy(a1,0,a2,8,a1.length);
        for (int i = 0; i < a2.length; i++) {
            System.out.print(a2[i]+"\t");
        }
    }
}
